package com.coocaa.ops.admin.v1.onclickinfo.validator;

import com.coocaa.ops.admin.v1.onclickinfo.entity.CommonOnclickInfoEntity;
import lombok.experimental.UtilityClass;
import org.springframework.util.Assert;

/**
 * @author bijiahao
 * @description
 * @date 2020/6/22 16:47
 */
@UtilityClass
public class OnclickInfoValidator {

    public static void valid(CommonOnclickInfoEntity entity){
        Assert.hasText(entity.getOnlickName(), "点击事件名称不能为空");
        Assert.hasText(entity.getOnlickJson(), "点击事件json信息不能为空");
        Assert.hasText(entity.getPackagename(), "点击事件包名不能为空");
    }
}
